package org.game.module.storebo;

import com.sojoys.artifact.exception.AbstractLogicModelException;
import com.sojoys.artifact.factory.session.ISession;
import com.sojoys.artifact.core.IModule;
/** 
 * 商店
 */
public interface StoreBO extends IModule {
	byte classCode = 10;
	
	/** 取得商店信息 [code = 2561] */
	short getStoreInfo = 2561; 
	/** 购买 [code = 2562] */
	short buy = 2562; 
	/** 刷新商店 [code = 2563] */
	short refreshStore = 2563; 
	/** 取得商品的购买记录 [code = 2564] */
	short getCommodityBuyLog = 2564; 
	/** 出售 [code = 2565] */
	short sell = 2565; 
	/** 请求动态商品信息 [code = 2566] */
	short reqDynamicCommodity = 2566; 
	
	
	/** 取得商店信息 [code = 2561] */
	byte[] getStoreInfo(ISession session, org.game.protobuf.c2s.C2SStoreMsg.GetStoreInfo storeInfo) throws AbstractLogicModelException;
	
	/** 购买 [code = 2562] */
	byte[] buy(ISession session, org.game.protobuf.c2s.C2SStoreMsg.BuyGoods buyGoods) throws AbstractLogicModelException;
	
	/** 刷新商店 [code = 2563] */
	byte[] refreshStore(ISession session, org.game.protobuf.c2s.C2SStoreMsg.RefreshStore refreshStore) throws AbstractLogicModelException;
	
	/** 取得商品的购买记录 [code = 2564] */
	byte[] getCommodityBuyLog(ISession session) throws AbstractLogicModelException;
	
	/** 出售 [code = 2565] */
	byte[] sell(ISession session, org.game.protobuf.c2s.C2SStoreMsg.SellInfo sellInfo) throws AbstractLogicModelException;
	
	/** 请求动态商品信息 [code = 2566] */
	byte[] reqDynamicCommodity(ISession session) throws AbstractLogicModelException;
	
}